package com.andy.buyu.server.dto;

import com.andy.buyu.server.game.GameConf;

import io.netty.buffer.ByteBuf;

/**
 * 更新配置
 * @author cuiwm
 */
public class ConfsMessage extends BaseMessage{
	
	int version;
	public ConfsMessage(int version) {
		this.version = version;
	}
	
	@Override
	public void writeBody(ByteBuf buf) {
		buf.writeInt(GameConf.version);
		if(GameConf.version > version){
			writeString(buf, "public/confJson");
		}
	}


}